package routers

import (
	"beego-demo/controllers"
	beego "github.com/beego/beego/v2/server/web"
)

func init() {
    beego.Router("/", &controllers.MainController{})

	/*自动路由模式*/
	beego.AutoRouter(&controllers.LoginController{})

	/*RESTful 路由模式*/
	beego.Router("/user", &controllers.UserController{})

	/*使用注解路由模式的*/
	beego.Include(&controllers.ProductController{})

	// beego.AutoRouter(&controllers.TestController{})
}
